<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% var article = (Article)Model; %>
    <div class="ui-widget-content" style="border-left: none; border-right: none; border-bottom: none;
        padding: 10px; margin: 5px;">
        <h3>
            Article History:<%=article.Title %></h3>
    </div>
    <table style="width: 100%">
        <tr>
            <td style="width: 20px;">
                #
            </td>
            <td>
                Reversion
            </td>
            <td>
                User
            </td>
        </tr>
        <% foreach (var history in article.Histories.ToList())
           { %>
        <tr>
            <td>
                <%=history.Version %>
            </td>
            <td>
                <%=history.LastModified.ToString() %>
            </td>
            <td>
                <%=history.Modified %>
            </td>
        </tr>
        <%} %>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
